<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html>

<html>
<head>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<jsp:include page="/core/tool/resources.jsp"></jsp:include>
	<script src="../set/role.js"></script>
	
</head>

<body>
  	
	<div id="toolbar">
	   <a class="easyui-linkbutton" iconCls="icon-add" onclick="$('#dg').edatagrid('addRow')">新增</a>
	   <a class="easyui-linkbutton" iconCls="icon-reload" onclick="$('#dg').edatagrid('reload')">刷新</a>
       <a class="easyui-linkbutton" iconCls="icon-remove" onclick="$('#dg').edatagrid('destroyRow')">删除</a>
       <a class="easyui-linkbutton" iconCls="icon-undo" onclick="$('#dg').edatagrid('cancelRow')">取消</a>
	</div>
	
	<table id="dg" class="easyui-edatagrid" style="margin-top:20px"
            data-options="toolbar:'#toolbar', editing:true, pagination:true, sortOrder:'desc', sortName:'userName', rownumbers:true, singleSelect:true, 
            	fitColumns:true, autoSave:true, 
           	 	updateUrl:'./saveuser.json', saveUrl:'saveuser.json', destroyUrl:'./deleteuser.json' ,
            	url:'./pageuser.json'">
        <thead>
            <tr>
                <th data-options="field:'userName',width:80, editor:'textbox' ">用户名</th>
                <th data-options="field:'userFullname',width:100, editor:'textbox' ">姓名</th>
                <th data-options="field:'roleId',width:300, editor:{type:'combobox',options:{flexset:'BASE_ROLE'}}">角色</th>
            </tr>
        </thead>
    </table>
    
</body>
</html>
